package mock.servicesdirectory.premises.business.businessimpl;

import java.util.List;
import mock.servicesdirectory.common.entities.Premise;
import mock.servicesdirectory.premises.business.businessinterface.PremiseBo;
import mock.servicesdirectory.premises.dao.daointerface.PremiseDao;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

public class PremiseBoImpl implements PremiseBo {
	private PremiseDao premiseDao;

	public void setPremiseDao(PremiseDao premiseDao) {
		this.premiseDao = premiseDao;
	}

	public PremiseDao getPremiseDao() {
		return premiseDao;
	}

	@Override
	public boolean addPremise(Premise premise) {
		// TODO Auto-generated method stub
		premiseDao.addPremise(premise);
		return false;
	}

	@Override
	public boolean updatePremise(Premise premise) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public List<Premise> getPremise() {
		return premiseDao.getPremise();
	}

	@Override
	public List<Premise> getPremise(int orgid) {
		// TODO Auto-generated method stub
		return premiseDao.getPremise(orgid);
	}
	
	
}
